import request from '@/config/axios'


export const storeApi = {
  // 创建商铺
  createStore: async (data: any) => {
    return await request.post({ url: `/shops/info/create`, data })
  },
  // 更新商铺信息
  updateStore: async (data: any) => {
    return await request.put({ url: `/shops/info/update`, data })
  },
  // 获取商铺分页
  getStorePage: async (params: any) => {
    return await request.get({ url: `/shops/info/page`, params })
  },
  // 获取商铺信息
  getStore: async (id: number) => {
    return await request.get({ url: `/shops/info/get?id=` + id })
  },
  // 删除商铺信息
  deleteStore: async (id: number) => {
    return await request.delete({ url: `/shops/info/delete?id=` + id })
  }
}